- content_for :title do
  = t('.title')

- content_for :section_title do
  = t('.title')

- content_for :section_rightpanel do
  a.btn.btn-success href="#{new_admin_apple_key_path}"
    i.icon.fa-regular.fa-plus-square
    = t('.new_apple_key')

.row
  .col-md-12
    - if @apple_keys.size > 0
      .card
        .card-header
          h3.card-title
            i.icon.fa-solid.fa-people-group
            = t('.teams', count: @apple_keys.size)
        .card-body.p-0
          table.table.table-bottom-borderless
            thead
              tr
                th = t('.number')
                th = t('.team_name')
                th = t('.team_id')
                th = t('.created_at')
                th.d-none.d-sm-block = t('.action')
            tbody
              - @apple_keys.each_with_index do |apple_key, i|
                tr
                  td
                    = i + 1
                  td
                    = link_to apple_key.team.full_name, admin_apple_key_path(apple_key)
                  td
                    = apple_key.team.team_id
                  td
                    = time_ago_in_words(apple_key.created_at)
                  td.d-none.d-sm-block
                    = button_link_to '', admin_apple_key_path(apple_key), 'trash-alt', \
                      class: 'btn btn-tool', \
                      data: { turbo_method: :delete, turbo_confirm: t('modals.destroy_apple_key.body', name: "#{apple_key.team&.display_name} (#{apple_key.team&.team_id})"), bs_toggle: :tooltip, bs_custom_class: 'default-tooltip' }
    - else
      .card.card-outline.card-warning
        .card-header.card-border
          h3.card-title = t('.not_found.title')
        .card-body = t('.not_found.body_html')
